package cz.muni.fi.pa165.dundd.dto;

import java.util.List;
import java.util.Objects;

/**
 *
 * @author xszanto1 <ardos@mail.muni.cz>
 */
public class HeroDTO {

    private Long id;
    private String name;
    private int xp;
    private List<HeroRoleDTO> roles;
    private TroopDTO myParty;
    private String password;

    //<editor-fold defaultstate="collapsed" desc="get set">
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getXp() {
        return xp;
    }

    public void setXp(int xp) {
        this.xp = xp;
    }

    public List<HeroRoleDTO> getRoles() {
        return roles;
    }

    public void setRoles(List<HeroRoleDTO> roles) {
        this.roles = roles;
    }

    public TroopDTO getMyParty() {
        return myParty;
    }

    public void setMyParty(TroopDTO myParty) {
        this.myParty = myParty;
    }

    //</editor-fold>
    @Override
    public int hashCode() {
        int hash = 7;
        hash = 23 * hash + Objects.hashCode(this.id);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final HeroDTO other = (HeroDTO) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "HeroDTO{" + "id=" + id + ", name=" + name + ", xp=" + xp + ", roles=" + roles + ", myParty=" + myParty + '}';
    }
}
